package org.crawler.task;

import java.util.LinkedList;
import java.util.Queue;

import org.crawler.taskobj.DataRecord;
import org.crawler.taskobj.FreshUrl;
import org.crawler.taskobj.HtmlPage;
import org.crawler.taskobj.WebUrl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("TaskCenter")
public class TaskCenter {
	
	@Autowired
	private HTMLTaskQueue htmlpage;
	
	@Autowired
	private WebUrlQueue webUrl;
	
	@Autowired
	private FreshUrlQueue freshUrl;
	
	@Autowired
	private JsonStrTaskQueue record;
	


	@Autowired
	private FreshUrlMap freshUrlMap;
	
	public ImageQueue getImageQueue() {
		return imageQueue;
	}

	public void setImageQueue(ImageQueue imageQueue) {
		this.imageQueue = imageQueue;
	}
	@Autowired
	private CarIdNameMap caridNameMap;
	

	@Autowired
	private DataRecQueue dataRecQueue;
	
	@Autowired 
	private ImageQueue imageQueue;
	

	public FreshUrlMap getFreshUrlMap() {
		return freshUrlMap;
	}

	public void setFreshUrlMap(FreshUrlMap freshUrlMap) {
		this.freshUrlMap = freshUrlMap;
	}

	public CarIdNameMap getCaridNameMap() {
		return caridNameMap;
	}

	public void setCaridNameMap(CarIdNameMap caridNameMap) {
		this.caridNameMap = caridNameMap;
	}

	public HTMLTaskQueue getHtmlpage() {
		return htmlpage;
	}

	public void setHtmlpage(HTMLTaskQueue htmlpage) {
		this.htmlpage = htmlpage;
	}

	public WebUrlQueue getWebUrl() {
		return webUrl;
	}

	public void setWebUrl(WebUrlQueue webUrl) {
		this.webUrl = webUrl;
	}

	public FreshUrlQueue getFreshUrl() {
		return freshUrl;
	}

	public void setFreshUrl(FreshUrlQueue freshUrl) {
		this.freshUrl = freshUrl;
	}

	public JsonStrTaskQueue getRecord() {
		return record;
	}

	public void setRecord(JsonStrTaskQueue record) {
		this.record = record;
	}

	public DataRecQueue getDataRecQueue() {
		return dataRecQueue;
	}

	public void setDataRecQueue(DataRecQueue dataRecQueue) {
		this.dataRecQueue = dataRecQueue;
	}
	public TaskCenter(){
		
	}
	

	

}
